
class KeySetting {
   int keyNum;//1左边 2右边
   int action;//1短按 2轻点两下
   int function;

  KeySetting({required this.keyNum, required this.action,required this.function});

  factory KeySetting.fromJson(Map<String, dynamic> json) {
    return KeySetting(
      keyNum: json['keyNum'],
      action: json['action'],
      function: json['function'],
    );
  }

  Map<String, dynamic> toJson() => {
    'keyNum': keyNum,
    'action': action,
    'function': function,
  };
}
